﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Nirvana
{
    public sealed class NetClientReceive
    {
		public NetClient netclient;
        public int receivelength;

		internal void OnReceiveSuccess()
		{
			this.netclient.OnReceiveSuccessData(this.receivelength);
			if (this.netclient.socket.Connected)
			{
				this.netclient.StartReceive();
			}
		}

		public void Close()
		{
			this.netclient.Close();

		}


	}
}